package o;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.webkit.WebView;
import o.azf.a;
import o.azf.e;
import o.azf.j;

public class bap extends baq {
    private long ॱ = 0;

    public int ˋ() {
        return a.ʿ;
    }

    public int ˏ() {
        return j.ˏ;
    }

    public Drawable ˎ(Context context) {
        return context.getResources().getDrawable(e.ᐝ);
    }

    public void ˎ() {
        long currentTimeMillis = System.currentTimeMillis();
        if (Math.abs(currentTimeMillis - this.ॱ) >= 1000) {
            this.ॱ = currentTimeMillis;
            ˋ(this.ˋ, this.ˏ);
            dgh.ॱ(ContentManager.getInstant().getContext(), this.ˎ.getString(j.ʼ), enx.ॱ(this.ˏ));
        }
    }

    private void ˋ(WebView webView, String str) {
        try {
            webView.loadUrl("javascript:window.HiSpaceObject.onPageLoaded('<html>' + document.getElementsByTagName('html')[0].innerHTML + '</html>', \"" + dnk.ˏ(str.getBytes("UTF-8")) + "\");");
        } catch (Exception e) {
            azh.ˏ.ˏ("ShareMenu", "loadHtmlContent error");
        }
    }
}
